package com.dd.cloud.user.service.admin;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dd.cloud.common.vo.PageVo;
import com.dd.cloud.user.entity.admin.AdminSaleInfo;
import com.dd.cloud.user.entity.admin.SaleInviteDoctor;
import com.dd.cloud.user.req.admin.*;
import com.dd.cloud.user.res.admin.*;

import java.util.List;

/**
 * @author Lx
 * @version 1.0
 */
public interface ISaleInviteDoctorService extends IService<SaleInviteDoctor> {

    /**
     * 批量添加
     */
    void saveBatchByList(List<SaleInviteDoctor> list);

    /**
     * 查询销售邀请医生列表
     *
     * @param req
     * @return
     */
    PageVo<SaleInviteDoctorPageRes> querySaleInviteDoctorPage(SaleInviteDoctorPageReq req);

    /**
     * 绑定销售邀请的医生
     *
     * @param inviteCode
     * @param doctorId
     */
    AdminSaleInfo bindSaleInviteDoctor(String inviteCode, Integer doctorId);

    /**
     * 销售统计邀请已认证医生开方数据
     *
     * @param req
     * @return
     */
    PageVo<SaleInviteDoctorStatisticsAuthPageRes> querySaleInviteDoctorStatisticsAuthPage(SaleInviteDoctorStatisticsAuthPageReq req);

    /**
     * 销售统计邀请未认证医生开方数据
     *
     * @param req
     * @return
     */
    PageVo<SaleInviteDoctorStatisticsNoAuthPageRes> querySaleInviteDoctorStatisticsNoAuthPage(SaleInviteDoctorStatisticsNoAuthPageReq req);

    /**
     * 销售查询邀请医生订单列表
     *
     * @param req
     * @return
     */
    IPage<SaleInviteDoctorOrderPageRes> querySaleInviteDoctorOrderPage(SaleInviteDoctorOrderPageReq req);

    /**
     * 销售首页, 查询邀请医生统计
     */
    SaleInviteDoctorStatisticsRes querySaleDoctorStatistics(SaleInviteDoctorStatisticsReq req);
}
